import logging
class Pagination(object):

    def process_request(self, request):
        if request.GET.has_key('page'):
            raw_page = request.GET.get('page', 1)
            try:
                page = int(raw_page) 
            except TypeError, ValueError:
                page = 1
            request.page = page
        else:
            request.page = 1
            
        logging.debug('Page: %s' % request.page)
        
        return None
    
